home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swagn_r.zip
/
RECORDS.SWG
/
0013_Getting Record Offsets.pas
< prev
Wrap
Pascal/Delphi Source File
|
1995-03-03
|
298b
|
21 lines
{
> Does anyone know how I can find and use the offset of
> a given field in a record?
AFAIK, you can only use BASM for that. example:
}
type
XXX=record
A,B,C:byte;
end;
var
W:word;
begin
asm
mov ax,XXX.A
mov W,ax
end;
{ W holds now the offset of A in XXX }
end.